package com.wen.config.EquipmentFilter;

import com.wen.entry.bean.Property;

import java.util.function.Predicate;


// 垃圾蓝色装备

// A好属性，B垃圾属性
public class MyFilter {
    private MyFilter(){}


    // 好属性
    private static final Predicate<Property> A = new BetterPropertyNameFilter();;

    // 垃圾属性
    private static final Predicate<Property> B = A.negate();

    // A3  3级好属性
    private static final Predicate<Property> A3 = A.and(new PropertyLevelFilter(3));

    // A2  2级好属性
    private static final Predicate<Property> A2 = A.and(new PropertyLevelFilter(2));

    // A1  1级好属性
    private static final Predicate<Property> A1 = A.and(new PropertyLevelFilter(1));

    // B1  1级垃圾属性
    private static final Predicate<Property> B1 = B.and(new PropertyLevelFilter(1));

    // B2  2级垃圾属性
    private static final Predicate<Property> B2 = B.and(new PropertyLevelFilter(2));



    // 垃圾蓝色属性：B或者A1
    private static final Predicate<Property> TrashBlueProperty = B.or(A1);


    // 垃圾蓝装：第一条属性是垃圾属性
//    public static Predicate<Equipment> blueTrash = e ->{
//        return TrashBlueProperty.test(e.getProps().get(0));
//    };
}
